clipboard-client.c: Include necessary headers for Windows
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 3 May 2021 08:33:14 +0000 (16:33 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 4 May 2021 04:12:50 +0000 (12:12 +0800)
We need to include io.h and process.h for close() and exit(), as unistd.h may
not be universally available.

testsuite/gdk/clipboard-client.c

index d9f8ff2f9d2b08e7d55122de5f31b5c54304d919..b27da9220502d50e9e0947bac27739ee867df5ac 100644 (file)
@@ -4,6 +4,10 @@
 #include "wayland/gdkwayland.h"
 #endif
 
+#ifdef G_OS_WIN32
+#include <io.h>
+#include <process.h>
+#endif
 
 G_GNUC_NORETURN static void
 got_string_cb (GObject      *source,